Skip to content

contracts/ccip/ccip: validate account address lengths#220

Open
cfal wants to merge 6 commits intodevelopfrom
svm-accounts-length
Open

contracts/ccip/ccip: validate account address lengths#220
cfal wants to merge 6 commits intodevelopfrom
svm-accounts-length

Conversation

@cfal
Copy link
Collaborator

@cfal cfal commented Jun 12, 2025

No description provided.

@cfal cfal requested a review from JohnChangUK June 12, 2025 15:43
@cfal cfal temporarily deployed to integration June 12, 2025 15:43 — with GitHub Actions Inactive
pad_svm_address(&mut token_receiver);
assert!(
token_receiver.length() == 32,
error::invalid_argument(E_INVALID_SVM_TOKEN_RECEIVER_LENGTH)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer not to use these error::() wrappers as it makes writing test cases harder, as it will produce an erroneous error code which you have to convert from decimal to hex.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are consistently using them across CCIP though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, we can keep this for now

@JohnChangUK JohnChangUK enabled auto-merge (squash) June 16, 2025 18:50
@cfal cfal temporarily deployed to integration June 20, 2025 12:42 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

This PR is stale because it has been open days with no activity.
Remove the stale label, comment, or update this PR to prevent this PR from being closed in days.

@github-actions github-actions bot added the Stale label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants